﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleManager.aspx.cs" Inherits="EnvironmentManagerSystem.RoleManager.RoleManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script src="../Script/artDialog.js?skin=aero" type="text/javascript"></script>

    <script src="../Script/iframeTools.js" type="text/javascript"></script>

    <script src="../Script/ShowMinPage.js" type="text/javascript"></script>

    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .myline /*输入线*/
        {
            border-right: #000000 0px solid;
            border-top: #000000 0px solid;
            border-left: #000000 0px solid;
            border-bottom: #000000 1px solid;
        }
    </style>
</head>
<body style="background: #e0e2e7; overflow: visible;">
    <form id="form1" runat="server">
    <div>
        <table class="style1" align="center" style="width: 100%;">
            <tr>
                <td style="text-align: center">
                    <input id="Button2" type="button" class="anniu1" value="权限赋予" runat="server" onclick="frm.show('RoleManager/RoleRight.aspx','权限赋予',true,800,420)" />&nbsp;&nbsp;
                    <input id="Button1" class="anniu1" type="button" value="添加角色" runat="server" onclick="frm.show('RoleManager/RoleAdd.aspx','添加角色',true,310,150)" />&nbsp;&nbsp;
                    <asp:Button runat="server" CssClass="anniu1" ID="btnReBind" Text="刷新" OnClick="btnReBind_Click" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    <asp:GridView ID="gvRole" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        AllowPaging="True" ForeColor="#333333" GridLines="Vertical" Width="99%" DataKeyNames="ID"
                        BorderColor="Silver" OnPageIndexChanged="gvRole_PageIndexChanged" OnPageIndexChanging="gvRole_PageIndexChanging"
                        OnRowCancelingEdit="gvRole_RowCancelingEdit" OnRowDeleting="gvRole_RowDeleting"
                        OnRowEditing="gvRole_RowEditing" OnRowUpdating="gvRole_RowUpdating" HorizontalAlign="Center"
                        EmptyDataText="无数据" OnDataBound="gvRole_DataBound">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F0F2F3" Font-Size="12px" Height="16px" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="编号" ReadOnly="True" />
                            <asp:BoundField DataField="RoleName" HeaderText="名称" />
                            <asp:TemplateField HeaderText="操作">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Update">更新</asp:LinkButton>
                                    &nbsp;&nbsp;
                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Cancel">取消</asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">编辑</asp:LinkButton>
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" Visible="false">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle Font-Bold="True" ForeColor="#00286F" CssClass="right_list01_tit" BackColor="#507CD1" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
